<?
/**
 * <b>Hli_BookingResponseType Class</b>
 * Published 21/12/2010 03:45:13
 *
 * @author Lars Sorhus (lars@saucecode.com.au)
 * @copyright sauceCode Pty Ltd.
 * @version 2.0.4.342.
 * @internal It's not recommended at all to modify this code.
 */

//Begin Class
class Hli_BookingResponseType extends Hli_Serializer{
	private $__response=array();
	private $__errors;
	private $__nusoapRequest;
	private $__nusoapResponse;
	private $__nusoapDebugOutput;

	public function  __construct(){
		parent::__construct();
	}

	/**
	 * @method getErrors
	 * @return Hli_ErrorType[]
	 */
	public function getErrors(){
		return($this->__errors);
	}

	/**
	 * @method addError
	 * @param Hli_ErrorType
	 * @return void
	 */
	public function addError(Hli_ErrorType $error){
		$this->__errors[]=$error;
	}

	/**
	 * @method getRequestObject
	 * @return Array
	 */
	public function getResponseObject(){
		return($this->__response);
	}
	/**
	 * @method setRequestObject
	 * @param Array
	 * @return void
	 */
	public function setResponseObject($value){
		$this->__response=$value;
		$this->setAck($value["Ack"]);
		$this->setHAWB($value["HAWB"]);
		$this->setExternalReferenceCode($value["ExternalReferenceCode"]);
		//Loop Through Errors
		if(count($value["ErrorArray"]["Errors"])>0){
			for($c=0;$c<count($value["ErrorArray"]["Errors"]);$c++){
				$err=$value["ErrorArray"]["Errors"][$c];
				$this->addError(new Hli_ErrorType($err["Code"],$err["Message"],$err["Severity"]));
			}
		}
	}

	/**
	 * @method getNuSoapRequest
	 * @return string
	 */
	public function getNuSoapRequest(){
		return($this->__nusoapRequest);
	}
	/**
	 * @method setNuSoapRequest
	 * @param string
	 * @return void
	 */
	public function setNuSoapRequest($value){
		$this->__nusoapRequest=$value;
	}

	/**
	 * @method getNuSoapResponse
	 * @return string
	 */
	public function getNuSoapResponse(){
		return($this->__nusoapResponse);
	}
	/**
	 * @method setNuSoapResponse
	 * @param string
	 * @return void
	 */
	public function setNuSoapResponse($value){
		$this->__nusoapResponse=$value;
	}

	/**
	 * @method getNuSoapDebugOutput
	 * @return string
	 */
	public function getNuSoapDebugOutput(){
		return($this->__nusoapDebugOutput);
	}
	/**
	 * @method setNuSoapDebugOutput
	 * @param string
	 * @return void
	 */
	public function setNuSoapDebugOutput($value){
		$this->__nusoapDebugOutput=$value;
	}

	/**
	 * @method getAck
	 * @return string
	 */
	public function getAck(){
		return($this->__response["Ack"]);
	}
	/**
	 * @method setAck
	 * @param string
	 * @return void
	 */
	public function setAck($value){
		$this->__response["Ack"]=$value;
	}

	/**
	 * @method getHAWB
	 * @return string
	 */
	public function getHAWB(){
		return($this->__response["HAWB"]);
	}
	/**
	 * @method setHAWB
	 * @param string
	 * @return void
	 */
	public function setHAWB($value){
		$this->__response["HAWB"]=$value;
	}

	/**
	 * @method getExternalReferenceCode
	 * @return string
	 */
	public function getExternalReferenceCode(){
		return($this->__response["ExternalReferenceCode"]);
	}
	/**
	 * @method setExternalReferenceCode
	 * @param string
	 * @return void
	 */
	public function setExternalReferenceCode($value){
		$this->__response["ExternalReferenceCode"]=$value;
	}
}
?>
